Repository navigation
feat: Tell a computer below the requirements so at launch, before setup. - #18
Merged
Merged
Conversation
App Studio runs a server, a database and a Flutter app side by side, and on a computer with too little memory or too slow a processor a project is very slow to start or does not start at all. Such a computer now hears that first thing at launch — before first-run setup downloads a few GB of tools onto it. - The requirements are 16 GB of memory and 8 logical cores. Anything short of either raises "App Studio is unlikely to run on this computer", listing only what falls short, with Try Anyway and Quit. - The memory bar is 13 GiB rather than 16: a 16 GB computer never reports all of it where the figure is what the OS can use, and integrated graphics can hold back 2 GB. 12 GB, the next size down, still falls short. - The core count is a proxy for speed, chosen over a benchmark because it is instant and the same on every start. - Windows is asked for its memory directly (GetPhysicallyInstalledSystemMemory, then GlobalMemoryStatusEx), macOS through sysctl, Linux from /proc/meminfo. A reading that fails or takes over two seconds is not held against the computer, so the check can never stop the app from starting. - Try Anyway is remembered with the readings it was made for: the same computer is not asked twice, one that reads differently later is. - While the question is up it owns the window, like setup: File > Open, Open Recent and Settings are off, and no other launch question lands on it. Verified on the Windows dev laptop: the real memory and core readings, and the real app run once with an 8 GB / 4-core machine faked — the question at launch, Try Anyway to the start page, and the choice saved. The macOS and Linux readings are tested with fakes only, Quit was not pressed in the real app, and the process-tagged tests were not run locally. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
App Studio runs a server, a database and a Flutter app side by side. On a computer with too little memory or too slow a processor, a project is very slow to start or does not start at all. Such a computer is now told so first thing at launch, before first-run setup downloads a few GB of tools onto it.
What changes
main()createsSystemRequirementsControllerbeforerunApp, andhomeshowsSystemRequirementsScreenahead of the setup screen and the shell. While it is up it owns the window: File → Open, Open Recent and Settings are off, and no other launch question (Linux's add-to-applications, the update check) lands on top.GetPhysicallyInstalledSystemMemory, thenGlobalMemoryStatusEx), macOS through/usr/sbin/sysctl -n hw.memsize, Linux from/proc/meminfo. A reading that fails or takes over two seconds is not held against the computer, so the check can never stop the app from starting.Decisions worth a look
specs/windows_vm_testing.mdsays so.Verification
flutter analyzeis clean andflutter test -x process -j 1passes on the Windows dev laptop (1114 passed, 20 skipped), including 32 new tests: the readings per OS with fakes, the thresholds and the remembered choice, and the dialog and screen.main(): the dialog at launch, Try Anyway to the start page, and the choice saved. The fake was removed again.Not verified
exit(0), as in the setup dialogs).🤖 Generated with Claude Code